Some fixes
Removed register
Removed for loop