Very crude, quick attempt at integration