Adding initial valueOf implementation