Adds metaprogramming tricks for guarded functions.