Simplify color function
Functions separated for other apps to use