Shortened by a few lines.