Changed constants to static for compiling reasons