Programmed for the basic idea.  Haven't tested anything yet.