Added basic chunk functionality.