Fix. Mark some functions as `static`