Working lib implementation