Use boolean flag to check if backend was called