Added Encode and Decode for action shit.