Add compile method