Made the BC Math extension optional