Refactored converters and secured the color parsing.