Adding once which executes the passed function only once