Added basic chunk functionality but shadowing is not working properly yet