Cleaning up unnecessary timeout function