Added functions for saving clients