Flattened RESS profile map & added code to send profile details back to
client.