Morfine windows refactored