Very buggy basic implementation of Integratoin