Wrapping the core in one function