Implements ticket creation.