Changed back to original zdoor and added checks on calls.