z_ functions added.