Adding proxy capabilities and some debugging statements

PR to dev