Splitted msg function in specific file