Document this garbage until I refactor it.