Added multi-line support to Exec call