Switched to use functions from command lib to talks to MSP