Add the extension at the end
Support lsb1 and lsb4.

While we are at it, handle no extension