Use a variable reference for filename.