Fixed touch detection, now works globally. TODO: manage time more actively