Wrote &SRQ and &ddd handling functions