Added impacts. Cleaning up code. Not finished yet.