Load necessary packages first before all functions