Removed unused variables (mPosX and mPosY)