Slight alteration in code