Fixed some errors. Need to spilt up the calculate results function to prevent stack too deep error
Fixed some errors. Need to spilt up the calculate results function to
prevent stack too deep error

otlw/otlw-app,otlw/otlw-app