Replaced Options with existing script

http://stackoverflow.com/a/383245/1774081