Prev Version of Integration Code