Modified the ssh command code to call our own read function