Added .temp command, minor code tweaks.