Finalize utilities for generating keys etc