Adding class unloading and max permsize options