Removed debug code from chest CC handler and added a useful fuction