Ported script to click