Removed test code form Logic.