Working on writing retrieve_pattern and retrieve_username functions since we're going to need them for the unlock routine.  retrieve_username appears to be working.