Moved function to other file.