This method is really hard to grasp :unamused: We should probably mark it with a TODO for a rewrite.