Wrote core logic