added Math.floor x / x * 100 to change attachment rate to an actual % value.