Merged implementation