Added dye-related helper methods.