More work on moving objects and lua integration