Explanation of how this craziness works