Redesign interface.
Fix compile error.