Added move element function