How To Integrate Step Functions