Simplifying api by using annotations.