Implemented stuff up to cancellation