Adds if statements in followpath