May want to silence unused variable warnings dx, dy.