Added dummy setOptions function
Small optimization to getSpec
Minor performance improvements