Initial version of wrap-cursor