Changed folder check to ensure resource