Set up guard for auto compilation