Only execute custom functions when keyword present (fixes #124)