Add getting user key function