Finished doCreate() function