Added proper fancy wrapping, careful with unsigned comparisons
Merged changes, wrapping and viktor hold mouse