Test passes, code is not pretty.