Added relay controller