Simulate a library