Adding ability to change behaviour of when to use caption.