Broke main out into a seperate file, so that liquidate function can be called from a seperate file