"Undeclared identifier" errors after moving to 4.4

See Robbie’s solution below.