Fixed bug in head closing stdout
Added swiftly for ... do command