Implemented success, cancel & failed logic