Can this entire function be removed?