Added function for editing options