Added bug fixes for transition lookup, and parameter encoding.