Added optional_bind function