Refactor functions: create functions for "concurrent" parts