Removing unneccessary redundancies