Allow custom dictionary to be passed as an option