Added pre-compile hook