Added code for scalar