Need to implement hiberlite-like API.