Switch to Ruby, more sample modifications.