Added z and y prime params, removed hard wired bit