Fixed function acting as the constructor