clang doesn't like the inline modifier for non-static functions, removed this.