Added support for setting position