Removing dead code - functions lcm