Added comments for console.log for better tracking. Started attach rate variable.