Adding code from Vigo startup's application that I worked with.