Fix some bugs. Procfs still doesn't work.