Merge all functions