Implement compile command