Add some lib helpers for model definition