Cleaned up le code