Creating stub function defines for queue operations based on queue stubs from earlier
Code reshuffling and section labelling