Improved marker detection (not working though)