A model-based approach for gesture interfaces.