Deleted duplicate block coding function
Deleted pass variable
Removed explicit passes