Removed useless "valid_interval" variable