New method to get messages; renamed method