Refactored GoRoutines into reusable methods