Added Z initialization