Seperated into functions (Merge)