Use send function
Move commands into separate file