Encapsulated the static variables in emit.