Added stdin / stdout support