User and host related functions