Working non-optimized code.