Add proc check, fixes #1