added withInput method for DSL.