Added multi-touch support. And better input handling.