Added single/double precision selection