Library load moved to constructor