Improved options page and added better scripting