Final pieces. Now for debugging...