Reverted changes
Add binary resource
modified looping