Added helper functions, and easy way to specify core when core is the
main binary