Code cleanup extraneous function