Add inline to functions to silence compiler warnings