Completed first pass at presence support.