Fixed formula to use options according to @adamv suggestions.