Integrate RGB

Work in progress. Please check for updates in a while.