Added level class, and synchronous JSON reading