Added basic trait decoding and URL parameter reading.