Removed unneeded timeout function