Added function for removing redundant jumps.