Changed pointer manipulation to look nicer.