Added init and NBT functionality