Format code and add signed out constraint