Unrelated to your work but why do we need "connection" as an argument for this function?