Adding to_bd and to_xcr methods to NilClass.