Added new type of path following and made program fail gracefully when not supplied a pattern