Finish mplementing fittedQ