Added force parameter to allow overwriting files