Added some modifications for phone ssh use.