Added Asset Function. Created the concept of Autowired Function to easily implement functions which require injected beans.