Moved general functions from PatronInfo to Library