Moved singleton statements up to top for readability.