Fixed remaining bugs in movement, added JCTrace.