Abstracting out commands to become connection agnostic