Added callback and reload function