Made the Acceleration_To_Message and Message_To_Acceleration more generic