Change get_output_period statement