Inserted console log to see if there is an issue with asynchronour calls