Added BCD-based stability objective. Small tweaks to original stabilityObj.