Adding logic for capturing focus point