Re-worked printf calculation to use colors