Please refer to the previous comment to reconsider where this function should be performed. Thanks.