Added basic functionality for assigning and marking codes to be sent