Adding timeout, solves Firefox going crazy