Added Original GetwayD implementation