Working mouse tracking (but buggy a bit)