Resolving #20 adding last and pending execution functions