Adding proxy capabilities and some debugging statements