Maggie's changes to add signout