Scripts: Optional time and memory limiting