Modularize helper functions
add convertToRC