Try to implement getMessges (WIP)