Moving receiving logic, added background processes