Try only running main functionality when both modules are ready