Renamed 'timeout' to 'time'
Reformatted code for cleanliness