There is code after a return which will never be hit, this should be cleaned up.