Added button caching option.