Added average function instructions