Core: Apply const to some functions