Deleted some of the old pseudo code