Cleaned up variable obj initialisation