How Do Agents Comply with Norms?