Added code for joy 1.