Added and deleted needed and unneeded blocks.