Finally fixed CodePieces. Was simpler than I thought. -.-