Working on functionality of Scalar wrapper.