Decided to not use generic function to get clicking functionality because I can't get it to work.