More work on patron card generation feature