Added BCLSocket function