Adding min and max time through attributes