param: initialize store function to NULL if not available.