Removed stop(), put malloc in c code.