Added { and } to function