Fixed spelling and removed unneeded code.