Made checking by time work