End of day commit - starting on BayerPredict function