Added a simple custom spread function