- Refactored some code for better compatibility with nuclear controller.