Switched to modularized version of exposure algorithm