Moved nim files to core.