Changed OutBuffer to 1024 bytes