Changed get_infix to not using any type-checks.