Converted addUser pseudocode and dependent function signatures