New class Shim added

Some functions added and some global defines