Cleaned up timeout function.