Implemented go routine functionality