There should be something similar to a model to handle this..