Adding proposed slave code