Now works if no callback function is defined.