Refactored some of crane.