Adding sample relay code