Finished stubbing code