Added IsCompiled method to check state.
Made Destroy method private.