Added compile hook