Added cancel support to perfect code