Added transposition of two dimensions