First attempt at integration