Simplified library to meet  Lafosca needs and improve its performance