Added mobile support, fixed some bugs.