Added options panel; implemented threading