Pre-allocate some variables