Improved custom binding