Painful attempt to make it work on mobile