Went back to the vector based z-restoration. Can't shake the shakiness.