Added ability to provide a function for the base option