Code optimization
Add library heartbeat