Removing timeout error if statement