Fixed core. Changed env script.