Added addedtochunk boolean for chunk logic