Core: Mark some module functions as static