Made code more stable and added tempc.lsp