Fixed crashes, added difficulty support.