Added compileToDisk feature