Deleted redundant function from lightning script