Support for both 4 and 5