Fixed some bugs and added developer options.