Working on fully implementing postmessage