Add comments for function