Modifed detecter to format incoming values.