A quick and dirty implementation of Magic Passport-style functionality.