Added excerpt configuration option to make a custom function