Done some work on the promise, and added log and echo on object