Fixed calcPaints. Was using input EWC instead of output.