Added compile method.