Removed a constructor.
Added extra check to make sure length of data specified is >=5.