Simple version of apply