Simpler version, working.