Cleaned up a small bit of code