This one can be refactored. Really.