Made labels optional
Declared type of labels for speed purposes