Added optional proxy configuration