Added time range logic on start_code and basic_test