Removing unused libraries resolve #123
Changed deprecated call to setInline to setLocality.