Added function back after unknown error