Bugfixing this. It's working surprisingly wel.