Need to provide a service to check s=(f,g,r,w)