Added the loops for the return tables and started working on the three regime model