Op system refactored, bugs fixed.