Refactor (WIP): Make Rpl seperate compilation.