Abstract library code