Added reset-function for ghosts