Fixed syntax, added input