Create misc.c 

Added implementation for new calls. Modified the existing one to take care of the protection thing.