Added default variables to prevent errors