You should put the amsg before the $awaymsg because I think that will return $null if you are not away anymore.