v1.1 Fixed some important bugs.