Allow message retrieval with code