Wrong solution, but better than previous.