Modified IfB2Weight as per feedback and review.
Modified code as suggested by olly and dan.