Removed recursion from output toggle