Little debugging. Finished core.