Some improvements. Now stucked at SEGSEGV.