Import the functions and classes we need