Added simple high-level interface.