Fixed importing code to Core data