Removes some useless variables