Deleted Paul's ugly code.