Custom mv implementation