Reformatted code for the integration tier