Replace self with static also in fromFilename