Changed order of 'const' declarations (define them before use)
Export one more function