Can you share the final code ?
It might be useful for others out here..